<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateCategory.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
	<link rel="stylesheet" rev="stylesheet" href="css/css.css" type="text/css"  />
	<link rel="stylesheet" type="text/css" href="DatePicker_CN/css/ui-lightness/jquery-ui.css"/>

    <script type="text/javascript" charset="utf-8" src="ueditor/editor_config.js"></script>
    <script type="text/javascript" charset="utf-8" src="ueditor/editor_all.js"></script>
    <script type="text/javascript" src="js/jquery-1.9.1.js"></script>	
	<script type="text/javascript" src="js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="js/WarnMessages.js"></script>
	<style type="text/css">
		<!--
		.atten {font-size:12px;font-weight:normal;color:#F00;}
		-->
	</style>

  </head>
  <script type="text/javascript">
/*****以下是表单验证****/
$(function(){
	
	$("#myform").validate({
	rules:{
			'category.name':{
			required:true,
			maxlength:10
			},
			'category.enName':{
			required:true,
			maxlength:30
			},
			'category.introduce':{
			required:true
			}
		}
	});
    });
    /*****以上是表单验证****/	
</script>
  <body>
    <form id="myform" action="admin/updateCategoryInfo" method="post">
   	<div class="MainDiv">
	<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
	  <tr>
	      <th class="tablestyle_title" >添加期刊类别</th>
	  </tr>
 	  <tr>
	    <td class="CPanel">
			<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
				<tr>
					<td width="100%">
						<fieldset style="height:100%;">
						<legend>添加期刊类别信息</legend>  
							  <table border="0" cellpadding="2" cellspacing="1" width="900px">
								   <tr>
										<td width="30px">&nbsp;</td>
									    <td align="right" height="50px" width="90px">期刊类别名:</td>
									    <td>
									    	<input type="hidden" name="category.categoryId" value="${category.categoryId }"/>
									    	<input name="category.name" value="${category.name }" style="height:23px;" type="text" class="text"  size="95"/>
									    </td>
								   </tr>
								   
								   <tr>
										<td>&nbsp;</td>
									    <td align="right" height="50px">类别英文名:</td>
									    <td>
									    	<input name="category.enName" value="${category.enName }" style="height:23px;" type="text" class="text"  size="95"/>
									    </td>
								   </tr>
								   
							       <tr>
										<td>&nbsp;</td>
								       	<td align="right" valign="top">类别介绍:</td>
								       	<td>
								       		<textArea id="editor" name="category.introduce" value="${category.introduce }" type="text/plain">这里可以书写，编辑器的初始内容</textArea>
								        </td>
							       </tr>
							       
							       <tr>
										<td>&nbsp;</td>
							       		<td>&nbsp;</td>
							       		<td>&nbsp;</td>
							       </tr>
							       <tr>
										<td>&nbsp;</td>
							       		<td>&nbsp;</td>
										<td align="center">
											<input type="submit" value="提交" class="right-button02"  /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="reset" value="重置" class="right-button02"  />
										</td>
									</tr>
							  </table>
					  <br/>
						</fieldset>			
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
				</tr>
				
				
			</table>
		</td>
	  </tr>
	  </table>
</div>	
</form>						   
</body>
</html>
<script type="text/javascript">
    //实例化编辑器
    var ue = UE.getEditor('editor');

    ue.addListener('ready',function(){
        this.focus()
    });

</script>
